import http from "./http";

export function fetchProducts(params = {}) {
  return http.get("/system/product/item", { params });
}

export function addToCart(payload) {
  return http.post("/trade/cart", payload);
}

export function verifyStock(cartId, payload = {}) {
  return http.post(`/trade/cart/${cartId}/spotcheck`, payload);
}
